package com.md.value.html;

import lombok.experimental.UtilityClass;

/**
 * @author 刘骄阳
 * @date 2024/5/15 23:06
 **/
@UtilityClass
public class HtmlConstants {
  /**
   * 合并行
   */
  public static final String ROWSPAN_FORMAT = "rowspan='%d'";
  /**
   * 合并列
   */
  public static final String COLSPAN_FORMAT = "colspan='%d'";

  /**
   * 默认的表格样式
   */
  public static final String DEFAULT_TABLE = "<table border='1' cellspacing='0'>";
  /**
   * 表格结束标签
   */
  public static final String TABLE_END = "</table>";

  public static final String DEFAULT_P = "<p>";
  /**
   * 行开始标签
   */
  public static final String TR_STYLE = "<tr styles='%s'>";
  public static final String TR_START = "<tr>";
  /**
   * 行结束标签
   */
  public static final String TR_END = "</tr>";
  public static final String SPAN_START = "<span>";
  public static final String SPAN_END = "</span>";

  /**
   * 列开始标签
   */
  public static final String TD_STYLE = "<td styles='%s'>";
  public static final String TD_START = "<td%s>";
  /**
   * 列结束标签
   */
  public static final String TD_END = "</td>";

  /**
   * 自定义标签
   */
  public static final String CUSTOM_LABEL_STYLE = "<%s styles='%s'>";
  /**
   * 基础code
   * 1.%s: 标签
   * 2.%s: 标签属性
   * 3.%s: 行内样式
   */
  public static final String BASE_CODE = "<%s%s styles='%s'>";
  public static final String CUSTOM_LABEL = "<%s>";

  /**
   * 自定义结束标签
   */
  public static final String CUSTOM_LABEL_END = "</%s>";

}
